package com.example.scoredemo

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.navigation.NavController
import androidx.navigation.findNavController
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.NavigationUI
import androidx.navigation.ui.setupActionBarWithNavController

class HomeActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_home)
        //添加标题返回
//        var navHostFragment = supportFragmentManager.findFragmentById(R.id.fragment2) as NavHostFragment
//        val appBarConfiguration = AppBarConfiguration(
//                setOf(R.id.homeFragment, R.id.detailFragment)
    }
}